package com.sss.gsb.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.sss.gsb.orm.model.LoanAccountClosed;
import com.sss.gsb.orm.repository.LoanAccountClosedRepository;
import com.sss.gsb.service.GSBService;
import com.sss.gsb.service.GSBServiceException;
import com.sss.gsb.service.LoadParameter;
@Deprecated
@Service
public class LoanAccountClosedService implements GSBService<LoanAccountClosed> {

	@Autowired LoanAccountClosedRepository repo;
	@Override
	public List<LoanAccountClosed> loadData(LoadParameter param)
			throws Exception {
		try{
			List<LoanAccountClosed> result = repo.findByCriteria(param.getIdCard(),
					param.getName(), param.getSurname(), param.getCpk(),
					param.getCps());			
			return result;
		}
		catch(Exception e){
			throw new GSBServiceException(e);
		}
	}

}
